﻿
using System;
using n_OS;

namespace n_StartFile
{
public static class StartFile
{
	public static string CodeFile;
	public static string CircuitFile;
	public static string GameFile;
	
	//初始化
	public static void Init()
	{
		CodeFile = OS.SystemRoot + "Resource" + OS.PATH_S + "startfile" + OS.PATH_S + OS.USER + "." + OS.LinkboyFile;
		CircuitFile = OS.SystemRoot + "Resource" + OS.PATH_S + "startfile" + OS.PATH_S + "circuit" + "." + OS.LinkboyFile;
		GameFile = OS.SystemRoot + "Resource" + OS.PATH_S + "startfile" + OS.PATH_S + "game" + "." + OS.LinkboyFile;
	}
	
	//判断一个文件是否为启动文件
	public static bool isStartFile( string f )
	{
		if( f.StartsWith( OS.SystemRoot + "Resource" + OS.PATH_S + "startfile" + OS.PATH_S ) ) {
			return true;
		}
		else {
			return false;
		}
	}
}
}

